//存放请求的函数
import { Pajax } from "../utils/ajax.js";
import api from "./api.js";
//请求首页
function getIndex() {
  return Pajax({
    url: api.Index,
  });
}

function getPartners(){
  return Pajax({
    url:api.Partners,
  })
}

function getIndex2(){
  return Pajax({
    url:api.Index2,
  })
}

function getProducts(){
return Pajax({
  url:api.Products,
})
}

function getAboutme(){
  return Pajax({
    url:api.Aboutme,
  })
}

function getCase(){
  return Pajax({
    url:api.Case,
  })
}

export { getIndex,getPartners,getIndex2,getProducts,getAboutme,getCase };
